<?php

namespace Alter\HominemBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Alter\UserBundle\Entity\User;

/**
 * @ORM\Entity
 * @ORM\Table(name="Livredor")
 */
class Livredor
{
    /**
     * @ORM\GeneratedValue
     * @ORM\Id
     * @ORM\Column(type="integer")
     */
    private $id;
  
    /**
     * @ORM\ManyToOne(targetEntity="Alter\UserBundle\Entity\User")
     * @Assert\NotBlank()
     */    
    private $user;

    /**
     * @ORM\Column(type="string",length="255")
     */    
    private $titre;

    /**
     * @ORM\Column(type="string",length="5000")
     * @Assert\NotBlank()
     */    
    private $contenu;

    /**
     * @ORM\Column(type="date")
     * @Assert\NotBlank()
     */    
    private $date;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set contenu
     *
     * @param string $contenu
     */
    public function setContenu($contenu)
    {
        $this->contenu = $contenu;
    }

    /**
     * Get contenu
     *
     * @return string 
     */
    public function getContenu()
    {
        return $this->contenu;
    }

    /**
     * Set date
     *
     * @param date $date
     */
    public function setDate($date)
    {
        $this->date = $date;
    }

    /**
     * Get date
     *
     * @return date 
     */
    public function getDate()
    {
        return $this->date;
    }

    /**
     * Set titre
     *
     * @param string $titre
     */
    public function setTitre($titre)
    {
        $this->titre = $titre;
    }

    /**
     * Get titre
     *
     * @return string 
     */
    public function getTitre()
    {
        return $this->titre;
    }

    /**
     * Set user
     *
     * @param Alter\UserBundle\Entity\User $user
     */
    public function setUser(\Alter\UserBundle\Entity\User $user)
    {
        $this->user = $user;
    }

    /**
     * Get user
     *
     * @return Alter\UserBundle\Entity\User 
     */
    public function getUser()
    {
        return $this->user;
    }
}
